<!doctype html>
<html lang="zh-CH">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	{{--<meta name="viewport" content="width=device-width, initial-scale=1">--}}
	<title>央票通</title>
	<link rel="stylesheet" href="./resource/css/index.css">
	<link rel="stylesheet" href="./resource/css/project_details.css">
</head>
<body>
<!-- 头部 -->
@include('common.index_head')
		<!-- 列表 -->
<div class="cont-pay">
	<div class="main">
		<div class="pay-swapper">
			<div class="pay-info">
				<?php  if(!empty($info)){?>
				<div><span>项目名称：</span>{{$info[0]->project_name}}</div>
				<div><span>年利率：</span>{{$info[0]->yield_rate}}</div>
				<div><span>期限：</span>{{$info[0]->limit}}天</div>
				<div><span>还款方式：</span>{{ProjectEnum::$Pay_types[$info[0]->pay_id]}}</div>
				<div><span>合作机构：</span>{{$info[0]->partner_id}}</div>
				<div ><span>出票央企：</span>{{$info[0]->company_name}}</div>
				<div><span>投资金额：</span><i i>{{$money}}元</i></div>
				<input type="hidden"  id="project_name" value="{{$info[0]->project_name}}">
				<input type="hidden"  id="yield_rate" value="{{$info[0]->yield_rate}}">
				<input type="hidden"  id="limit" value="{{$info[0]->limit}}">
				<input type="hidden"  id="Pay_types" value="{{ProjectEnum::$Pay_types[$info[0]->pay_id]}}">
				<input type="hidden"  id="partner_id" value="{{$info[0]->partner_id}}">
				<input type="hidden"  id="company_name" value="{{$info[0]->company_name}}">
				<input type="hidden"  id="money" value="{{$money}}">
				<input type="hidden"  id="type" value="{{$type}}">
				<input type="hidden"  id="project_id" value="{{$project_id}}">
				<?php }?>
			</div>
			<form id="theform" action="javascript:submitForm();" class="form">
				<div class="form-group">
					<label for="">现金卷：</label>
					<select name="" id="myselect" class="form-control"  @if(empty($withdraw)||$money<1000)  disabled="disabled" @endif >
						<option value="0">暂无可用的现金卷</option>
						@if(!empty($withdraw))
							@foreach($withdraw as $k=>$v)
							<option value="{{$v->reward}}_{{$v->t_id}}">现金券{{$v->reward}}元  满1000元使用</option>
							@endforeach
						@endif
					</select>
				</div>
				<div class="form-group">
					<label for="">交易密码：</label>
					<input type="password"  id="pwd" class="form-control">
				</div>
				<button tupe="submit" id="sure" class="btn btn-pay">确认投资</button>
				<!--<input type="submit" name="Submit" value=" 确认投资 " class="btn btn-pay">-->
			</form>
		</div>
	</div>
</div>
<!-- footer   -->
@include('common.index_foot')  

<script src="./resource/js/jquery-1.11.3.min.js"></script>
<script src="./resource/js/index.js"></script>
<script src="./resource/js/jquery.process.js"></script>
<script src="./resource/js/project.js"></script>
<script src="./resource/js/bar.js"></script>
<script src="./resource/jquery/recepay.js"></script>
</body>
</html>